package com.mrx.xfriendship;

import com.mrx.commons.config.MinioProperties;
import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author MrX
 */
@EnableAsync
@EnableCaching
@EnableAspectJAutoProxy
@SpringBootApplication(scanBasePackages = "com.mrx")
@EnableConfigurationProperties(MinioProperties.class)
@DubboComponentScan(basePackages = {"com.mrx.xfriendship.service"})
public class XFriendshipProvider {

    public static void main(String[] args) {
        SpringApplication.run(XFriendshipProvider.class, args);
    }

}
